package com.dfbz.demo11_static继承的特点;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01 {
    public static void main(String[] args) {

        Zi.method();
    }
}
class Fu{
    // 被static修饰的方法可以被继承
    public static void method(){
        System.out.println("Fu");
    }
}

class Zi extends Fu{


    public static void method(){
        System.out.println("Zi");
    }
}
